package com.antu.first.service;

import com.antu.first.bean.Comment;
import com.antu.first.dto.CommentOperationExecution;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/3/6.
 */
public interface CommentService {

    /**
     * 查看对应酒店的所有评论，可以分别查询差评，好评，中评，支持进行分页查询
     * @param hId
     * @param coType
     * @param pageIndex
     * @return
     */
    CommentOperationExecution queryAllComment(int hId, int coType,int pageIndex);

    /**
     *新增评论
     * @param comment
     * @return
     */
    CommentOperationExecution addComment(Comment comment);

}
